import React from 'react'
import { useLocation } from 'react-router-dom'
import qs from 'qs'

export default function News() {
    const location=useLocation()
    const {user,id}=qs.parse(location.search.split('?')[1])
    return (
        <div>
            <div>News</div>
            <p>明星是{ user },编号为{ id }</p>
        </div>
    )
}
